package com.jn.erp.web.api.institution.entity.vo;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jn.erp.security.entity.SysRole;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author sunjiyong
 * @since 2024/9/2 9:30
 */
@Data
public class EmployeeVo {

    private Long id;
    private String name;
    private String email;

    private Long wxAccessId;
    private Integer gender;
    //头像
    private String avatar;
    private String genderName;
    private String mobile;
    private Boolean state;
    private String password;

    private String remark;
    private Integer loginTimes;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    private LocalDateTime latestLoginTime;
    private String latestLoginIp;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm"
    )
    private LocalDateTime addTime;
    private Long schoolId;

    private Long orgId;

    private Boolean isTeach;

    private Boolean isJob;


    private String nickName;

    //员工包含角色ids
    private String roleIds;

    //员工包含角色名称
    private String roleNames;

    @TableField(exist = false)
    private String num;

    @TableField(exist = false)
    private List<SysRole> roles;

    @TableField(exist = false)
    private String wxParam;

    //本月课时
    @TableField(exist = false)
    private Double nh;
    //上月课时
    @TableField(exist = false)
    private Double yh;
    //已上课时
    @TableField(exist = false)
    private Double ah;

    //老师id
    private Long teacherId;
    //家长关系
    private String familyRel;

    private String courseId;

    //是否转换 counselorId 跟进人    managementId 学管师  teacherId 班级
    @TableField(exist = false)
    private JSONObject convert;

}
